package com.blockchain.wmm.block.bean;

import java.sql.Timestamp;

/**
 * @author  wangzun
 * 简单的区块实体 ,按照bitcoin规则, 一个区块包含一个区块头 一个区块体,以及该区块的hash
 * */
public class Block {
    private BlockHeader blockHeader;
    private BlockBody blockBody;
    private String hash;

    public BlockHeader getBlockHeader() {
        return blockHeader;
    }

    public void setBlockHeader(BlockHeader blockHeader) {
        this.blockHeader = blockHeader;
    }

    public BlockBody getBlockBody() {
        return blockBody;
    }

    public void setBlockBody(BlockBody blockBody) {
        this.blockBody = blockBody;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }
}
